<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="{:U('/')}">艺术&middot;blog</a>
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nvbar-main">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div class="collapse navbar-collapse" id="nvbar-main">
            <ul class="nav navbar-nav" id="nav">
                <li class="active"><a href="{:U('/')}"><span class="glyphicon"></span> 首页</a></li>
                <li><a href="{:U('Index/msg')}"><span class="glyphicon"></span>留言</a></li>
                <li><a href="{:U('Index/project')}"><span class="glyphicon"></span> 开源项目</a></li>
                <li><a href="{:U('Index/about')}"><span class="glyphicon glyphicon-question-sign"></span> 关于</a></li>
            </ul>
            <form class ="navbar-form navbar-left" role ="search" method="post" action="{:U('Index/search')}">
                <div class ="form-group">
                    <input type ="text" class ="form-control search-text" name="s" placeholder ="Search">
                </div>
            </form>
          <div class="navbar-right">
                <a href="javascript:alert('待完善...');" class="btn btn-info navbar-btn navbar-right">登陆</a>
            </div>
        </div>
    </div>
</nav>